#include "cv.h"
#include "highgui.h"
#define CUT_RIGHT 180
#define CUT_UP 100
#define CUT_DOWN 200
int main(int argc, char** argv){
	IplImage *in=cvLoadImage(argv[1],1);
	IplImage *out=cvCreateImage(cvSize(in->width-CUT_RIGHT,in->height-CUT_UP-CUT_DOWN),
				    in->depth,
				    in->nChannels);
	
	cvSetImageROI(in,cvRect(0,CUT_UP,in->width-CUT_RIGHT,in->height-CUT_UP-CUT_DOWN));
	cvCopy(in,out,0);

	cvSaveImage("cut_out.jpg",out,0);

	cvReleaseImage(&in);
	cvReleaseImage(&out);
	return 0;
}
